
<div class="top-bar">
    <div class="logo">
        <img src="<?php echo $host ?>/Images/Bret_Logo.png"/>
    </div>
    <?php
    if ($this->viewPort && $this->param != "")
        include $this->viewPort;
    ?>
    <div class="account" onclick="window.location.href='/bret/bret';" style="cursor: pointer;">
        <div class="info">
            <p id="user-name" class="name"><?php $user = User::withId($GLOBALS['userId']);
    echo $user->name ?></p>
            <p class="email"><?php echo $user->email; ?></p>
        </div>
        <img class="avatar" src="<?php echo $host ?>/Images/avatar.png"/>
    </div>
</div>

